function addMessage(form)
{
	var message = new Object();
    message.content = form.content.value;
    message.point = new Object();
    message.point.x = form.x.value;
    message.point.y = form.y.value;
    
    $.ajax(
    {
        type : 'PUT',
        contentType : 'application/json',
        url : '/${project.build.finalName}/restful-services/user-api/message/post/add',
        dataType : "json",
        data : JSON.stringify(message),
        success : function(data, textStatus, jqXHR)
        {
        	alert("message was added");

        },
        error : function(jqXHR, textStatus, errorThrown)
        {
            alert(jqXHR.status);
        }

    });
}

